﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HtmlAgilityPack;
namespace RoosterAgenda
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           // createuri("test");
         string url = createuri("test");
                Console.WriteLine(url);
                parsetable();
        }
        public void parsetable()
        {
            int count = 0;
            HtmlAgilityPack.HtmlDocument page = new HtmlAgilityPack.HtmlDocument();
            page.Load("C:\\html\\frame.htm");
            foreach (HtmlNode table in page.DocumentNode.SelectNodes("//table"))
            {
                count = count + 1;
                Console.WriteLine(count);
            }

        }

        public string createuri(string klas)
        {
            string baseuri = "http://www.novaprojecten.nl/roosters/sbs/basis/default.htm?name=";
            string url = baseuri + klas;
            return url;
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {
            
        }
    }
}
